import Vue from 'vue';
import Router from 'vue-router';
import HelloWorld from '@/components/HelloWorld';
import home from '@/views/home';
import m1 from '@/views/menber1';
import m2 from '@/views/menber2';
import m3 from '@/views/menber3';

Vue.use(Router);

export default new Router({
  // 去除#号路径
  mode: 'history',
  routes: [
    {
      path: '/hello',
      name: 'HelloWorld',
      component: HelloWorld
    }, {
      path: '/',
      name: 'home',
      component: home
    }, {
      path: '/m1',
      name: 'm1',
      component: m1
    }, {
      path: '/m2',
      name: 'm2',
      component: m2
    }, {
      path: '/m3',
      name: 'm3',
      component: m3
    }
  ]
});
